// 统一管理用户相关的接口
import { defaultRequest } from '@/utils/request'
// 同意管理用的的接口
enum API {
     GetDistrictStatistics = '/api/LwHazards/GetDistrictStatistics',
     GetDistrictsByLevelAndName = '/api/LwHazards/GetDistrictsByLevelAndName',
     GetLineList = '/api/Map/GetLineList',
     GetAllLayers = '/api/Map/GetAllLayers',
     SelectTracy = '/api/Supervisionlist/SelectTracy',
}
// 对外暴漏请求函数
export const GetDistrictStatistics = () =>
     defaultRequest.get(API.GetDistrictStatistics)
export const GetDistrictsByLevelAndName = () =>
     defaultRequest.get(API.GetDistrictsByLevelAndName)
export const GetLineList = () => defaultRequest.get(API.GetLineList)
export const GetAllLayers = () => defaultRequest.post(API.GetAllLayers)

export const SelectTracy = (params: any) =>
     defaultRequest.get(API.SelectTracy, { params })
